#ifndef __CHAT_H__
#define __CHAT_H__

#include "../share/common_singleton.h"
#include <stdint.h>
#include "Player.h"


class CChatManager :public common::CSingleton<CChatManager>
{
public:
	CChatManager() {}
	~CChatManager() {}
public:

	void SendChatMessageToClient(uint32_t, uint32_t, uint32_t, const char*, Player&, uint16_t, uint16_t);
	void SendChatMessageToClient(uint32_t, uint32_t, uint32_t, const char*, Player&
		, const char* gvcId, double gvcTime, const char* gvcPart);

	void SendChatMessageToGuild(uint32_t, uint32_t, uint32_t, const char*, Player&, uint32_t);
	void SendChatMessageToGuild(uint32_t, uint32_t, uint32_t, const char*, Player&, const char*, double, const char*);

	void SendChatToFriendMessageToClient(uint32_t, uint32_t, uint32_t, const char*, uint32_t, Player&);
	void SendChatToFriendMessageToClient(uint32_t, uint32_t, uint32_t, const char*, uint32_t, Player&
		, const char* gvcId, double gvcTime, const char* gvcPart);

	void DealChatEvent(uint32_t playerId, uint32_t chatEvent, const char* data);
private:

};

#endif